<template>
  <div>
    <el-button @click="click">点我试试</el-button>
  </div>
</template>

<script>
export default {
  porps: {
    age: {
      type: Number,
      default: 0
    }
  },
  methods: {
    click() {
      console.log('click')
      this.$emit('update:age', parseInt(Math.random() * 100))
    }
  }
}
</script>

<style>

</style>
